<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>

<div class="container_0 clearfix">
	<div class="box no-border">
		<div class="header">
			<h2>${pageTitle}</h2>
		</div>
		<isperp:grid url="slm/serviceAgreement/listDetail"
			gridId="serviceAgreementGrid" altRows="true" gridTitle="${pageTitle}"
			pager="serviceAgreementPager" cusFormatterActions="true"
			cusEditUrl="slm/serviceAgreement/edit" editOrDeleteRightControl="true"
			ondbClickRowEvent="serviceAgreementGrid.edit(rowid);"
			multiselect="false" cusDeleteUrl="slm/serviceAgreement/delete"
			excelExportUrl="slm/serviceAgreement/excelExport">

			<jsp:attribute name="toolbar">
 				<isperp:toolbar id="userToolbar">
	 				<isperp:button id="userCreate" icon="icon-plus" text="新增服务协议"  cssClass="nui-mainbtn"
						onclick="serviceAgreementGrid.create();"></isperp:button>
	 				
 				</isperp:toolbar>
			</jsp:attribute>

			<jsp:attribute name="searchbar">
				<table class="search-table">
					<tbody>
						<tr>
							<td align="right">项目：</td>
							<td><form:select path="projectId" field="project_id" op="eq"
									items="${projectId}" itemLabel="name" itemValue="id"
									cssClass="search" data-allow-empty="true" data-width="240px" />
							</td>
							<td align="right">名称：</td>
							<td><input type="text" field="name" op="cn">
							</td>
							<td align="right">类型：</td>
							<td><form:select path="slmType" field="slm_type" op="cn"
									items="${slmType}" itemLabel="name" itemValue="name"
									data-allow-empty="true" />
							</td>
						</tr>
						<tr>
							<td align="right">应用对象：</td>
							<td><form:select path="applyObject" field="apply_Object"
									op="cn" items="${applyObject}" itemLabel="name" itemValue="id"
									data-allow-empty="true" />
							</td>
							<td align="right">状态：</td>
							<td colspan="3"><input type="radio" field="slm_status"
								op="eq" name="group1" value="启用" checked />启用
						<input type="radio" field="slm_status" op="eq" name="group1"
								value="禁用" />禁用
							</td>	
						</tr>
					</tbody>
				</table>
			</jsp:attribute>
			<jsp:body>
				<isperp:column name="id" title="id" hidden="true"></isperp:column>
				<isperp:column name="name" title="名称" width="150">
				</isperp:column>
				<isperp:column name="slm_type" title="类型"  width="60">
				</isperp:column>
				<isperp:column name="goal" title="合规性目标(%)" 
					width="80">
				</isperp:column>

				<isperp:column name="apply_object_name"  title="应用对象"
					width="80">
				</isperp:column>
				<isperp:column name="scope_desc" title="适应范围" width="150">
				</isperp:column>
				
				<%-- <isperp:column name="project_name" title="项目" width="120">
				</isperp:column> --%>
				<isperp:column name="slm_status" title="状态" 
					width="50" isFormatterFun="true"
					formatter="return isperp.statusFormatter(cellvalue)">
				</isperp:column>

				
			</jsp:body>

		</isperp:grid>
	</div>

</div>
 